<#assign menu="user">
<#assign submenu="cash_list">
<#include "/system/head.ftl">
<style type="text/css">

</style>
<!--main content start-->
	<section id="main-content">
		<section class="wrapper">
		<!-- page start-->
			<div class="row">
			<div class="col-lg-12">
			<section class="panel">
				<header class="panel-heading">
 					提现处理
				</header>
				<div class="panel-body">
					<form id="update_cash_form" method="post" class="form-horizontal" autocomplete="off" action="${basePath}/admin/cash/update.json">
					<fieldset>
					<input type="hidden" name="cashEntity.id" id="id" value="<#if cashEntity??>${cashEntity.id}</#if>"/> 
                    
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">提现消息</label>
                        <div class="col-sm-10">
                           <span><#if cashEntity??><#if cashEntity.cashMsg??>${cashEntity.cashMsg}</#if></#if></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">提现人</label>
                        <div class="col-sm-10">
                           <span><#if cashEntity??><#if cashUserEntity??>${cashUserEntity.userRealName}</#if></#if></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">提现银行</label>
                        <div class="col-sm-10">
                           <span><#if cashEntity??><#if cashUserEntity??>${cashUserEntity.bankName}</#if></#if></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">提现卡号</label>
                        <div class="col-sm-10">
                           <span><#if cashEntity??><#if cashUserEntity??>${cashUserEntity.bankCard}</#if></#if></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">提现金额</label>
                        <div class="col-sm-10">
                           <span><#if cashEntity??><#if cashEntity.cashCount??>${cashEntity.cashCount}</#if></#if></span>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">审核消息</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="cashEntity.passMsg" value="<#if cashEntity.passMsg??>${cashEntity.passMsg}</#if>"
                            	placeholder="审核消息" id="passMsg" >
                        </div>
                    </div>
                    
                    <div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">是否审核通过</label>
                          <div class="col-sm-10">
                          	<label class="radio-inline">
                        		<input type="radio" name="cashEntity.status" value="1" <#if (cashEntity.status==1)>checked</#if>/> 通过
                      		</label>
                      		<label class="radio-inline">
                        		<input type="radio" name="cashEntity.status" value="-1" <#if (cashEntity.status==-1)>checked</#if>/> 不通过
                      		</label>
                          </div>
                      </div>
                  </div>
                  
                    <div class="form-group">
                    	<label class="col-sm-2 col-sm-2 control-label"></label>
                    	<#if (cashEntity.status==0)>
                        	<button class="btn btn-danger" type="submit">修改</button>
                        </#if>
                        <button class="btn btn-danger" onclick="javascript:window.history.go(-1);" type="button">返回</button>
                    </div>
                   </fieldset>
				</form>
				</div>
			</section>
		</div>
		</div>
<!-- page end-->
		</section>
	</section>
 <!--main content end-->
<script type="text/javascript">
	$(function() {
		$('#update_cash_form').ajaxForm({
			dataType : 'json',
			success : function(data) {
				if (data.result) {
					bootbox.alert("保存成功，将刷新页面", function() {
						window.location.reload();
					});
				}else{
					showErrors($('#update_cash_form'),data.errors);
				}
			},
			error:function(data,textstatus){
		        bootbox.alert({  
		            buttons: {  
		               ok: {  
		                    label: '关闭'
		               }  
		            },
		            message: data.responseText,
		            title: '<@spring.message "system.errorTip"/>',  
		        });
	        }
		});
	});	
</script>
<#include "/system/foot.ftl">
